﻿using System;
using System.Security.Cryptography;

namespace Array
{
    class Program
    {
        static void Main(string[] args)
        {
            //一维数组
            int[] a = new int[3];
            for (int i = 0; i <= a.Length - 1; i++)
            {
                Console.WriteLine(a[i]);
            }

            //二维数组
            int[,] a2 = new int[2, 3]
            {
                {1,2,3 },
                {10,20,30 }
            };
            Console.WriteLine(a2[1,1]);
            // 数组迭代器split
            string str = "刘备,曹操,孙策";
            char[] c = new char[] { ',' };
            var s = str.Split(c);
            for (int i = 0; i < s.Length; i++)
            {
                Console.WriteLine(s[i]);
            }

        }
    }
}
